//
//  SNDBConn.h
//  ShaoNianGong
//
//  Created by zyt on 15-8-19.
//  Copyright (c) 2015年 zyt. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Singleton.h"
#import <FMDB/FMDB.h>

@interface DBDatabaseConn : NSObject

singleton_interface(DBDatabaseConn)

// 最新的FMDB不能使用一个databaseQueue实例
@property (nonatomic, strong, readonly) FMDatabaseQueue *databaseQueue;

@property (nonatomic, copy) NSString* emojiDBFilePath;
@property (nonatomic, copy) NSString* wordsDBFilePath;

+ (NSString*)dbSecret;
- (pthread_mutex_t*)dbLock;

@end
